package com.SpringBoot.SpringBoot.controller;

import com.SpringBoot.SpringBoot.bean.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Calendar;

/**
 * @author:liuwei
 * @creatdate:2022-04-15-15:57
 */
/*
* @Controller+@ResponseBody==@RestController
* */
@RestController
public class HelloController {
	@Autowired
	Car car;
	@RequestMapping("/hello")
	public String hello() {
		return "Hello World";
	}
	@RequestMapping("/car")
	public Car car(){
		return car;
	}
}
